package pool;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

public class RejectHandler implements RejectedExecutionHandler {
	
	@Override
	public void rejectedExecution(Runnable arg0, ThreadPoolExecutor arg1){
		System.err.println(Thread.currentThread().getName() + " execution rejected: " + arg0);
	}
}
